import React from 'react';
import styles from './ListItem.module.css';

const ListItem = ({link, icon, name}) => {
  return (
    <a className={styles.link} href={link}>
      <div className={styles['title-icon']}>
        <img src={`${link}/favicon.ico`} />
      </div>
      <div className={styles.title}><span>{name || link}</span></div>
    </a>
  )
};

export default ListItem;

